import request from '@/utils/request'

// 获取面试题列表数据
export const articleList = (data) => {
  return request.get('/admin/interview/query', {
    params: data
  })
}

// 添加面试题数据
export const createArticle = (data) => {
  return request.post('/admin/interview/create', data)
}

// 删除面试题数据
export const removeArticle = (id) => {
  return request.delete('/admin/interview/remove', { data: { id } })
}

// 修改面试题数据
export const getArticleDetail = (id) => {
  return request.get('/admin/interview/show', { params: { id } })
}

// 更新面试题数据
export const updatedArticle = (data) => {
  return request.put('/admin/interview/update', data)
}
